package com.xtsoft.platform.task.domain;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import jakarta.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.xtsoft.core.entity.GenericEntity;

import lombok.Data;

@Entity
@Table(name = "task_comment")
@Data
public class TaskComment extends GenericEntity{
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "taskCommentId", nullable = false, length = 32)
	private String taskCommentId;
	
	/**
	 * 任务
	 */
	@ManyToOne
	@JoinColumn(name="infTaskId")
	private InfTask infTask;
	
	@Column(name = "state", nullable = false, length = 32)
	private int state;
	
	@Column(name = "starLevel", nullable = true, length = 32)
	private int starLevel;
	
	@Column(name = "descript", nullable = true, length = 255)
	private String descript;
	
	@Column(name = "userId", nullable = false, length = 32)
	private String userId;
	
	@Column(name = "updateTime",length=19,nullable=false)
	private long updateTime;	
}
